import type { EnterpriseInfo } from '@/types'

export const defaultFormData: Partial<EnterpriseInfo> = {
  enterpriseName: '',
  socialCreditCode: '',
  centralEnterprises: undefined,
  corporateCode: '',
  districtBelong: '',
  unitContactNumber: '',
  belongIndustry: '',
  belongField: '',
  transferEnterprise: undefined,
  energyConsumptionLevel: '',
  longitude: '',
  latitude: '',
  unitType: '',
  legalRepresentative: '',
  address: '',
  zipCode: '',
  enterpriseUrl: '',
  email: '',
  fax: '',
  registrationDate: '',
  registeredCapital: '',
  remark: '',
  affiliatedGroup: '',
  groupAddress: '',
  groupType: '',
  managementAgency: '',
  supervisor: '',
  supervisorPhone: '',
  principal: '',
  principalPhone: '',
  managerId: '',
  managementCertification: undefined,
  certificationDate: '',
  certificationBody: '',
  mainProductionLine: '',
  leadingProduct: '',
  numberOfManagers: '',
}
export const formDataLabel = {
  id: 0,
  tenantId: 0,
  enterpriseName: '企业名称',
  socialCreditCode: '社会信用代码',
  centralEnterprises: '央企',
  corporateCode: '法人代码',
  districtBelong: '所属地区',
  unitContactNumber: '单位联系电话',
  belongIndustry: '所属行业',
  belongField: '所属领域',
  transferEnterprise: '能源加工转企业',
  energyConsumptionLevel: '能耗水平',
  longitude: '经度',
  latitude: '纬度',
  unitType: '企业类型',
  legalRepresentative: '法人代表',
  address: '单位地址',
  zipCode: '邮政编码',
  enterpriseUrl: '企业网址',
  email: '电子邮箱',
  fax: '传真',
  registrationDate: '注册日期',
  registeredCapital: '注册资本',
  remark: '备注',
  affiliatedGroup: '所属集团',
  groupAddress: '集团地址',
  groupType: '集团类型',
  managementAgency: '能源管理机构',
  supervisor: '节能领导',
  supervisorPhone: '节能领导电话',
  principal: '能管负责人姓名',
  principalPhone: '能管负责人电话',
  managerId: '能源管理师证号',
  managementCertification: '能源管理认证',
  certificationDate: '认证日期',
  certificationBody: '认证机构',
  mainProductionLine: '企业主要生产线',
  leadingProduct: '企业主导产品',
  numberOfManagers: '企业管理人数',
}
export const formRules = generateCurrencyFormRules(defaultFormData)
